package com.class5.springboot.entity;

import com.class5.springboot.frame.repo.entity.SuperEntity;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * tb_xt_action 系统权限表 
 **/
@SuppressWarnings("serial")
public class TbXtAction extends SuperEntity implements Serializable {

    /**主键(id)*/
    private Long id;

    /**角色ID(role_id)*/
    private Long roleId;

    /**权限信息(note)*/
    private String note;

    /**路径api(api_url)*/
    private String apiUrl;

    /**创建时间(create_time)*/
    private Timestamp createTime;

    /**更新时间(modify_time)*/
    private Timestamp modifyTime;

    public TbXtAction() {
    }

    public TbXtAction(Long id, Timestamp createTime) {
        this.id = id;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public TbXtAction setId(Long id) {
        addOriginalData("id", this.id, id);
        this.id = id;
        return this;
    }

    public Long getRoleId() {
        return roleId;
    }

    public TbXtAction setRoleId(Long roleId) {
        addOriginalData("role_id", this.roleId, roleId);
        this.roleId = roleId;
        return this;
    }

    public String getNote() {
        return note;
    }

    public TbXtAction setNote(String note) {
        addOriginalData("note", this.note, note);
        this.note = note;
        return this;
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public TbXtAction setApiUrl(String apiUrl) {
        addOriginalData("api_url", this.apiUrl, apiUrl);
        this.apiUrl = apiUrl;
        return this;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public TbXtAction setCreateTime(Timestamp createTime) {
        addOriginalData("create_time", this.createTime, createTime);
        this.createTime = createTime;
        return this;
    }

    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public TbXtAction setModifyTime(Timestamp modifyTime) {
        addOriginalData("modify_time", this.modifyTime, modifyTime);
        this.modifyTime = modifyTime;
        return this;
    }

    @Override()
    public String toString() {
        return this.getClass().getName() + ":{id:" + id + ",roleId:" + roleId + ",note:" + note + ",apiUrl:" + apiUrl + ",createTime:" + createTime + ",modifyTime:" + modifyTime + "}";
    }

    @Override()
    public boolean equals(Object arg0) {
        return ((TbXtAction) arg0).getId().equals(id);
    }

    @Override()
    public int hashCode() {
        return id == null ? 0 : id.hashCode();
    }
}
